package com.zsrd.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zsrd.system.domain.SysOperLog;
import com.zsrd.system.domain.SysUser;
import com.zsrd.system.mapper.SysOperLogMapper;
import com.zsrd.system.service.SysOperLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysOperLogServiceImpl extends ServiceImpl<SysOperLogMapper, SysOperLog> implements SysOperLogService {


    @Override
    public IPage<SysOperLog> listByPage(SysOperLog sysOperLog) {
        Page<SysOperLog> page = new Page<>();
        page.setCurrent(sysOperLog.getPageNum());//1
        page.setSize(sysOperLog.getPageSize());//10
        IPage<SysOperLog> list = baseMapper.selectkey(page , sysOperLog);
        return list;
    }
}
